#include <dirent.h>

#include <logger.h>

int main()
{
    DIR *dir = nullptr;
    VALUE_LOGGER((dir = opendir("/not_exists"))) << LOGSYSERR;
    VALUE_LOGGER((dir = opendir(".")));
    if (dir != nullptr) {
        while (auto dirent = readdir(dir)) {
            VALUE_LOGGER(dirent->d_name);
        }
        closedir(dir);
    }
    return 0;
}
